/**
  ETFDAQ Project
  \class TAMutexLocker
  \brief a mutex locker that unlock a mutex in its dtor
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2024-08-25
  \date 2024-08-25 last modified

  \copyright Copyright (c) 2021-2024 IMP-CAS with LGPLv3 LICENSE
*/

#ifndef TAMutexLocker_h
#define TAMutexLocker_h

#include <mutex>

class TAMutexLocker{
public:
	TAMutexLocker(std::mutex *m);
	virtual ~TAMutexLocker();

protected:
	std::mutex *fMutex;
};

#endif